const router = require('koa-router')()
const loginApis = require('../controllers/login')
const resultHandle = require('../middleware/resultHandle')

router.get('/login', loginApis.login, resultHandle)

router.get('/register', loginApis.register, resultHandle)

module.exports = router.routes()
